package com.ruoyi.customerSample.mapper;

import com.ruoyi.customerSample.domain.SampleDetailBill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 样品接收明细Mapper接口
 * 
 * @author ruoyi
 * @date 2023-04-10
 */
public interface SampleDetailBillMapper 
{
    /**
     * 查询样品接收明细
     * 
     * @param id 样品接收明细ID
     * @return 样品接收明细
     */
    public SampleDetailBill selectSampleDetailBillById(String id);

    /**
     * 根据编号和类别查询最大编号
     */
    public String selectsampleNumByType(@Param("length") String length, @Param("sampleName")String sampleName);

    /**
     * 查询样品接收明细列表
     * 
     * @param sampleDetailBill 样品接收明细
     * @return 样品接收明细集合
     */
    public List<SampleDetailBill> selectSampleDetailBillList(SampleDetailBill sampleDetailBill);

    /**
     * 新增样品接收明细
     * 
     * @param sampleDetailBill 样品接收明细
     * @return 结果
     */
    public int insertSampleDetailBill(SampleDetailBill sampleDetailBill);

    /**
     * 批量新增样品明细
     */
    public int batchSampleDetailBill(List<SampleDetailBill> bills);

    /**
     * 修改样品接收明细
     * 
     * @param sampleDetailBill 样品接收明细
     * @return 结果
     */
    public int updateSampleDetailBill(SampleDetailBill sampleDetailBill);

    /**
     * 删除样品接收明细
     * 
     * @param id 样品接收明细ID
     * @return 结果
     */
    public int deleteSampleDetailBillById(String id);

    /**
     * 根据来样登记id删除明细
     */
    public int deleteSampleDetailBillBySid(String sid);

    /**
     * 批量删除样品接收明细
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSampleDetailBillByIds(String[] ids);
}
